package org.itrip.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Created by tzeng on 2015-12-12.
 */
@Document(collection = "websiteprocess")
public class PageInfo {

    @Id
    private String id;
    /* 线路URL     */
    private String product_url = "";
    /* 产品名称    */
    private String product_name = "";
    /* 产品编号    */
    private String product_num = "";
    /* 出行天数    */
    private int product_days;
    /* 目的地    */
    private String product_to_city = "";
    /* 出发地    */
    private String product_city = "";
    /* 提供商链接    */
    private String provider_href = "";
    /* 提供商    */
    private String provider_name = "";
    /* 产品特色信息    */
    private String special_info = "";
    /* 产品日程信息    */
    private String simple_route = "";
    /* 产品推荐理由    */
    private String pm_recommend = "";
    /* 爬取时间     */
    private String crawl_time = "";
    /* 图片     */
    private String image_url = "";
    /* 今日价格 */
    private Integer today_price = -1;
    /* 评论得分    */
    private double comment_wrap = -1.0d;
    /* 产品价格    */
    private String prices = "";

    public String getCrawl_time() {
        return crawl_time;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setCrawl_time(String crawl_time) {
        this.crawl_time = crawl_time;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getProduct_url() {
        return product_url;
    }

    public void setProduct_url(String product_url) {
        this.product_url = product_url;
    }

    public int getProduct_days() {
        return product_days;
    }

    public void setProduct_days(int product_days) {
        this.product_days = product_days;
    }

    public double getComment_wrap() { return comment_wrap; }

    public void setComment_wrap(double comment_wrap) { this.comment_wrap = comment_wrap; }

    public Integer getToday_price() { return today_price; }

    public void setToday_price(Integer today_price) { this.today_price = today_price; }

    public String getPrices() { return prices; }

    public void setPrices(String prices) {
        this.prices = prices;
    }

    public String getPm_recommend() {
        return pm_recommend;
    }

    public void setPm_recommend(String pm_recommend) {
        this.pm_recommend = pm_recommend;
    }

    public String getSimple_route() {
        return simple_route;
    }

    public void setSimple_route(String simple_route) {
        this.simple_route = simple_route;
    }

    public String getSpecial_info() {
        return special_info;
    }

    public void setSpecial_info(String special_info) {
        this.special_info = special_info;
    }

    public String getProvider_href() {
        return provider_href;
    }

    public void setProvider_href(String provider_href) {
        this.provider_href = provider_href;
    }

    public String getProvider_name() {
        return provider_name;
    }

    public void setProvider_name(String provider_name) {
        this.provider_name = provider_name;
    }


    public String getProduct_city() {
        return product_city;
    }

    public void setProduct_city(String product_city) {
        this.product_city = product_city;
    }


    public String getProduct_to_city() {
        return product_to_city;
    }

    public void setProduct_to_city(String product_to_city) {
        this.product_to_city = product_to_city;
    }

    public String getProduct_num() {
        return product_num;
    }

    public void setProduct_num(String product_num) {
        this.product_num = product_num;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }


    @Override
    public String toString() {
        return "PageInfo:{" +
                "\nproduct_name='" + product_name + '\'' +
                ", \nproduct_num='" + product_num + '\'' +
                ", \nproduct_days='" + product_days + '\'' +
                ", \nproduct_to_city='" + product_to_city + '\'' +
                ", \nproduct_city='" + product_city + '\'' +
                ", \nprovider_href='" + provider_href + '\'' +
                ", \nprovider_name='" + provider_name + '\'' +
                ", \nspecial_info='" + special_info + '\'' +
                ", \nsimple_route='" + simple_route + '\'' +
                ", \npm_recommend='" + pm_recommend + '\'' +
                ", \ntoday_price='" + today_price + '\'' +
                ", \ncomment_wrap='" + comment_wrap + '\'' +
                ", \nprices\n='" + prices + '\'' +
                "\n}";
    }
}
